/**
 * @file bitLogic.h
 * @author your name (you@domain.com)
 * @brief 位逻辑指令
 * @version 0.1
 * @date 2025-04-30
 *
 * @copyright Copyright (c) 2025
 *
 */
#ifndef BIT_LOGIC_H
#define BIT_LOGIC_H

#include "xmzTypeDefine.h"
////////// 梯形图指令
//SET_BF
//RESET_BF
//SR
//RS
//P_TRIG
//N_TRIG
//R_TRIG  +
//F_TRIG  +

////////////////ST 指令
//R_TRIG  +
//F_TRIG  +

Bool Contact(Bool in, Bool operand,Bool Negated);
Bool PContact(Bool pre, Bool operand, Bool* bit);
Bool NContact(Bool pre, Bool operand, Bool* bit);
Bool Not(Bool in);
Bool Coil(Bool in, Bool* operand,Bool Negated);
Bool RCoil(Bool in, Bool* operand);
Bool SCoil(Bool in, Bool* operand);
Bool PCoil(Bool in, Bool* operand, Bool* bit);
Bool NCoil(Bool in, Bool* operand, Bool* bit);

Bool P_TRIG(Bool in, Bool* lastState);
Bool N_TRIG(Bool in, Bool* lastState);



#endif
